package com.hong.entity;

import com.hong.service.PasswordDecodable;

/**
 * Created by John on 2018/10/27.
 */
public class DataSourceConfig implements PasswordDecodable{
    private String userName;
    private String password;
    private Integer maxActive;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getMaxActive() {
        return maxActive;
    }

    public void setMaxActive(Integer maxActive) {
        this.maxActive = maxActive;
    }

    @Override
    public String toString() {
        return "DataSourceConfig{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", maxActive=" + maxActive +
                '}';
    }

    @Override
    public String getEncodedPassword() {
        return this.password;
    }

    @Override
    public void setDecodedPassword(String password) {
        this.password = password;
    }
}
